package cn.gs.web;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

import cn.gs.domain.Customer;
import cn.gs.domain.LinkMan;
import cn.gs.service.SelectLinkManService;
import cn.gs.service.SelectSuperService;

@Component(value = "selectSuperAction")
@Scope("prototype")
public class SelecSuperAction extends ActionSupport implements ModelDriven<Customer> {
	Customer customer=new Customer();
	@Resource(name = "selectSuperService")
	private SelectSuperService selectSuperService;
	List<Customer> list;
	private String keyan;
	private String dianjing;
	private String weizhi;
	
	
	
	public String selkeyan() {
		System.out.println("进来了");
		list=	selectSuperService.selectk();
		keyan=String.valueOf(list.get(0));
		List list1=	selectSuperService.selectw();
		weizhi=String.valueOf(list1.get(0));
		List list2=	selectSuperService.selectd();
		dianjing=String.valueOf(list2.get(0));
		System.out.println("电竞"+dianjing);
		return "selSuc";
	}
	
		
	@Override
	public Customer getModel() {
		
		return customer;
	}
	public SelectSuperService getSelectSuperService() {
		return selectSuperService;
	}
	public void setSelectSuperService(SelectSuperService selectSuperService) {
		this.selectSuperService = selectSuperService;
	}
	public List<Customer> getList() {
		return list;
	}
	public void setList(List<Customer> list) {
		this.list = list;
	}
	public String getKeyan() {
		return keyan;
	}
	public void setKeyan(String keyan) {
		this.keyan = keyan;
	}
	public String getDianjing() {
		return dianjing;
	}
	public void setDianjing(String dianjing) {
		this.dianjing = dianjing;
	}
	public String getWeizhi() {
		return weizhi;
	}
	public void setWeizhi(String weizhi) {
		this.weizhi = weizhi;
	}
	

}
